<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ice="http://www.icesoft.com/icefaces/component"
      >

    <body>

        <ui:composition template="./../Template.xhtml">

            <ui:define name="title">
                Editar rol
            </ui:define>

            <ui:define name="body">
                <ice:panelGroup id="messagePanel" layout="block">
                    <ice:messages errorClass="errorMessages" infoClass="infoMessages" layout="table" globalOnly="true"/>
                </ice:panelGroup>
                <ice:form partialSubmit="true" id="editarRolForm">
                    <ice:panelGrid columns="2" styleClass="standardTable" columnClasses="tituloLateral messageRight message" >
                        <ice:outputText value="Rol:"/>
                        <ice:outputText value="#{rol.rol.nombre}" title="Nombre" />
                    </ice:panelGrid>
                    <br />
                    <ice:panelGrid styleClass="standardTable" columnClasses="tituloLateral">
                        <ice:selectManyCheckbox  style="text-align:left"  layout="pageDirection" id="rolCollection" value="#{rol.rol.jsfcrud_transform[jsfcrud_class['jsf.util.JsfUtil'].jsfcrud_method.collectionToArray][jsfcrud_class['jsf.util.JsfUtil'].jsfcrud_method.arrayToList].ensayoCollection}" title="Roles" converter="#{ensayo.converter}" >
                            <f:selectItems value="#{ensayo.ensayoItemsAvailableSelectMany}"/>
                        </ice:selectManyCheckbox>
                    </ice:panelGrid>
                    <br />
                    <ice:commandLink action="#{rol.edit}" title="Guardar">
                        <f:param name="jsfcrud.currentRol" value="#{jsfcrud_class['jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][rol.rol][rol.converter].jsfcrud_invoke}"/>
                        <ice:graphicImage height="25px" url="/Imagenes/Guardar.png" />
                    </ice:commandLink>
                    <ice:commandLink action="#{rol.detailSetup}" title="Mostrar">
                        <f:param name="jsfcrud.currentRol" value="#{jsfcrud_class['jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][rol.rol][rol.converter].jsfcrud_invoke}"/>
                        <ice:graphicImage height="25px" url="/Imagenes/Mostrar.png" />
                    </ice:commandLink>
                    <ice:commandLink action="#{rol.listSetup}" title="Mostrar roles">
                        <ice:graphicImage height="25px" url="/Imagenes/Listar.png" />
                    </ice:commandLink>
                </ice:form>
            </ui:define>

        </ui:composition>

    </body>
</html>
